@inject('route', 'Illuminate\Support\Facades\Route')
@inject('user', 'App\Models\User')
<?php
$arr = explode('/',Request::path());
$module = isset($arr[1])?$arr[1]:'ILOVEYOU';
$uri = Route::getCurrentRoute()->getUri();

$uri_arr = explode('/', $uri);

/*$acl = config('acl');

foreach ($acl as $key=>$item) {
    echo "<BR><BR>key:".$key;
    echo "<BR>item:".$item;
}
$user_id = Auth::user()->id;
$users = $user->hasPermission('user');
echo "<BR>leen users:".$users."sotp";*/
?>
<ul class="nav navbar-nav">
    <li @if( (count($uri_arr)>1 && $uri_arr['1']=='goods') || count($uri_arr)==1) class="active" @endif><a href="/shop_admin/goods">商品 <span class="sr-only">(current)</span></a></li>
    <li @if(count($uri_arr)>1 && $uri_arr['1']=='order') class="active" @endif><a href="/shop_admin/order">订单</a></li>
    <!-- <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
        <ul class="dropdown-menu" role="menu">
            <li><a href="#">Action</a></li>
            <li><a href="#">Another action</a></li>
            <li><a href="#">Something else here</a></li>
            <li class="divider"></li>
            <li><a href="#">Separated link</a></li>
            <li class="divider"></li>
            <li><a href="#">One more separated link</a></li>
        </ul>
    </li> -->
</ul>